package com.jinzhi.oss.service;

import com.jinzhi.common.utils.Result;
import com.jinzhi.oss.domain.SysMinioDO;
import com.jinzhi.common.base.CoreService;
import org.springframework.util.StringUtils;
import org.springframework.web.multipart.MultipartFile;

/**
 *
 * <pre>
 * minio大文件唯一性校验表
 * </pre>
 * <small> 2023-12-17 01:17:44 | lance</small>
 */
public interface SysMinioService extends CoreService<SysMinioDO> {

    //校验文件是否已经上传
    public Result<String> register(String md5);

    //切片上传
    public Result<String> uploadChunk(MultipartFile file, String md5, String index);

    //合并切片
    public Result<String> mergeChunks(String md5, String fileName);

    //查询文件上传进度
    public Result<String> uploadSchedule(String md5);

}
